﻿Public Class Processes
    Public Sub New()

        ' This call is required by the designer.
        InitializeComponent()

        ' Add any initialization after the InitializeComponent() call.
        Processescls.EnumerateProcess(lstproc)
    End Sub
    Private Sub procercmenu_Opening(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles procercmenu.Opening
        If lstproc.SelectedItems.Count Then
            EndProcessToolStripMenuItem.Enabled = True
        Else
            EndProcessToolStripMenuItem.Enabled = False
        End If
    End Sub

    Private Sub EndProcessToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EndProcessToolStripMenuItem.Click
        Processescls.EndProcess(lstproc)
    End Sub
End Class
